<?php

namespace App\Admin\Repositories;

use App\Models\ContractTemplate as Model;
use Dcat\Admin\Repositories\EloquentRepository;

class ContractTemplate extends EloquentRepository
{
    /**
     * Model.
     *
     * @var string
     */
    protected $eloquentClass = Model::class;

    public static function getTemplateList()
    {
        return \App\Models\ContractTemplate::select('id', 'title')
            ->where('status', 1)
            ->get()
            ->pluck('title', 'id');
    }
}
